<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>修改院校详情 及 实训业务情况</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <!--link导入外部的css，js样式，如果导入的资源和本页面在同一个文件夹下，直接文件名即可-->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/bootstrap/dist/css/bootstrap.min.css}">
    <!-- jQuery 3 -->
    <script th:src="@{/asserts/bower_components/jquery/dist/jquery.min.js}"></script>
    <!-- Bootstrap 3.3.7 -->
    <script th:src="@{/asserts/bower_components/bootstrap/dist/js/bootstrap.min.js}"></script>
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/font-awesome/css/font-awesome.min.css}">
    <!-- Ionicons -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/Ionicons/css/ionicons.min.css}">
    <!-- DataTables -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css}">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/asserts/dist/css/AdminLTE.min.css}">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" th:href="@{/asserts/dist/css/skins/_all-skins.min.css}">

    <script th:src="@{/asserts/Apolar_sh/lib/layer/2.4/layer.js}"></script>
    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    <style type="text/css">
        .search {
            margin-top: 40px;
            margin-left: 40px;
            position: relative;
        }
    </style>

</head>
<body>


<div class="wrapper">
    <!-- Content Wrapper. Contains page content -->
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h4>
            <i class="fa fa-edit"></i>修改院校详情 及 实训业务情况
        </h4>

    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <!-- /.box-header 部门列表的显示  table  表格  th/td单元个   th字体加粗，行标题-->
                    <div class="box-body">
                        <form class="form-horizontal" method="post"
                              th:action="@{/campus/infoSave(RcurrentPage=${RcurrentPage},RpageSize=${RpageSize})}">
                            <input type="text" hidden name="campusInfoId">
                            <input type="text" hidden name="campusId" th:value="${campus.campusId}">
                            <input type="text" hidden name="campusName" th:value="${campus.campusName}">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">1、专业情况：</label>
                                <div class="col-sm-5">
							      <textarea class="input" id="info1"
                                            name="campusInfoProfessionSituation" style=" width: 700px;
									  height: 90px;"></textarea>
                                    <div class="tips" style="color: gray" title="">* 各年级（主要是大三、大四）的专业、人数及情况说明</div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">2、教学安排：</label>
                                <div class="col-sm-5">
							      <textarea class="input" id="info2" name="campusInfoLayout" style=" width: 700px;
									  height: 90px;"></textarea>
                                    <div class="tips" style="color: gray" title="">* 是否有内外短训安排？学校是否提供经费？是否招标，或按课酬？</div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">3、学制情况：</label>
                                <div class="col-sm-5">
							      <textarea class="input" id="info3" name="campusInfoEducationSituation" style=" width: 700px;
									  height: 90px;"></textarea>
                                    <div class="tips" style="color: gray" title="">* 大四还有多少课程？是否必须在学校？</div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">4、实训氛围：</label>
                                <div class="col-sm-5">
							      <textarea class="input" id="info4" name="campusInfoAtmosphere" style=" width: 700px;
									  height: 90px;"></textarea>
                                    <div class="tips" style="color: gray" title="">* 每年多大规模比例的学生参与实训？</div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">5、竞争对手：</label>
                                <div class="col-sm-5">
							      <textarea class="input" id="info5" name="campusInfoCompetitor" style=" width: 700px;
									  height: 90px;"></textarea>
                                    <div class="tips" style="color: gray" title="">* 哪些竞争对手？他们的招生手法是？</div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">6、招生量：</label>
                                <div class="col-sm-5">
							      <textarea class="input" id="info6" name="campusInfoStuCount" style=" width: 700px;
									  height: 90px;"></textarea>
                                    <div class="tips" style="color: gray" title="">* 过去2年在该校的招生量。</div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">7、其它说明：</label>
                                <div class="col-sm-5">
							      <textarea class="input" name="campusInfoRemarks" style=" width: 700px;
									height: 90px;"></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button type="submit" class="btn btn-info btn-lg">
                                        <i class="fa fa-check-square"></i>&nbsp;提交
                                    </button>
                                    <button type="reset" class="btn btn-info btn-lg">
                                        <i class="fa  fa-repeat"></i>&nbsp;重置
                                    </button>
                                    <a class="btn btn-info btn-lg" th:if="${session.user.authority == 1}"
                                       th:href="@{/campus/infoFindAll(currentPage=${RcurrentPage},pageSize=${RpageSize})}">
                                        <i class="fa fa-backward"></i> 返回
                                    </a>
                                    <a class="btn btn-info btn-lg" th:if="${session.user.authority != 1}"
                                       th:href="@{/campus/search(personname=${session.user.personname},currentPage=${RcurrentPage},pageSize=${RpageSize})}">
                                        <i class="fa fa-backward"></i> 返回
                                    </a>
                                </div>
                            </div>
                        </form>

                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </section>
    <!-- /.content -->
</div>

<!-- ./wrapper -->


<!-- DataTables -->
<script th:src="@{/asserts/bower_components/datatables.net/js/jquery.dataTables.min.js}"></script>
<script th:src="@{/asserts/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js}"></script>
<!-- SlimScroll -->
<script th:src="@{/asserts/bower_components/jquery-slimscroll/jquery.slimscroll.min.js}"></script>
<!-- FastClick -->
<script th:src="@{/asserts/bower_components/fastclick/lib/fastclick.js}"></script>
<!-- AdminLTE App -->
<script th:src="@{/asserts/dist/js/adminlte.min.js}"></script>
<!-- AdminLTE for demo purposes -->
<script th:src="@{/asserts/dist/js/demo.js}"></script>
<script>
    function check(_this) {
        var str = _this.val();
        console.log(str.length);
        if (str.length <= 10) {
            layer.msg('字数必须大于10', {icon: 0, time: 1500});
        }
    }

    $("#info1").blur(function () {
        check($("#info1"));
    });
    $("#info2").blur(function () {
        check($("#info2"));
    });
    $("#info3").blur(function () {
        check($("#info3"));
    });
    $("#info4").blur(function () {
        check($("#info4"));
    });
    $("#info5").blur(function () {
        check($("#info5"));
    });
    $("#info6").blur(function () {
        check($("#info6"));
    });

    $("form").submit(function() {
       if ($("#info1").val().length > 10 && $("#info2").val().length > 10 && $("#info3").val().length > 10
           && $("#info4").val().length > 10 && $("#info5").val().length > 10 && $("#info6").val().length > 10){
           return true;
       } else {
           layer.msg('字数必须大于10', {icon: 0, time: 1500});
           return false;
       }
    });
</script>
</body>
</html>